package thread;

import java.util.concurrent.TimeUnit;

/**
 * @classname:NovelDownloadThread
 * @description:
 * @author: Mr.Z
 * @date: 2020/12/18 22:55
 * @version: 0.1
 * @since:1.8
 */
public class NovelDownloadThread extends Thread {
    private String novelPath ;
    private String tagrget ;
    @Override
    public void run() {
        NovelDownload.download(novelPath,tagrget);
        try {
            TimeUnit.MILLISECONDS.sleep(200);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    public NovelDownloadThread(String name, String novelPath, String tagrget) {
        super(name);
        this.novelPath = novelPath;
        this.tagrget = tagrget;
    }

}
